package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.Question;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;

import javax.servlet.ServletOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.List;

public interface QuestionService {
    PageInfo<Question> findByPage(int currentPage, int pageSize);

    void save(Question question);

    Question findById(String id);

    void update(Question question);

    void delete(String[] ids);

    List<Question> findAll();


    void toExport(OutputStream outputStream) throws IOException, InvalidFormatException;
}
